package cn.tedu.fft.base.exception;

import cn.tedu.fft.base.response.StatusCode;
import lombok.Getter;

//自定义的业务层异常类 类型
public class ServiceException extends RuntimeException{
    @Getter
    private StatusCode statusCode;

    //没有具体方法，就写了个参数、构造方法
    public ServiceException(StatusCode statusCode) {
        this.statusCode = statusCode;
    }
}
